repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/jobs/feed_crawler/lib/throttle.rb
app/jobs/feed_crawler/lib/throttle.rb
module FeedCrawler class Throttle TIMEOUT = 60 * 30 def initialize(feed_url) @feed_url = feed_url end def self.retry_after(...) new(...).retry_after end def retry_after return nil unless throttled_hosts.include?(host) Time.now.to_i + random_timeout end def ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/jobs/feed_crawler/lib/concurrency_limit.rb
app/jobs/feed_crawler/lib/concurrency_limit.rb
module FeedCrawler class ConcurrencyLimit class TimeoutError < StandardError; end LIMITS = FeedbinUtils.key_value_parser(ENV["HOST_CONCURRENCY_LIMIT"]) do |limit| Concurrent::Semaphore.new(limit.to_i) end def initialize(feed_url) @feed_url = feed_url end def self.acquire(feed_u...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/jobs/feed_crawler/lib/redirect_cache.rb
app/jobs/feed_crawler/lib/redirect_cache.rb
module FeedCrawler class RedirectCache # 4 redirect/hr 24hrs a day for 6 days PERSIST_AFTER = 4 * 24 * 6 attr_reader :redirects def initialize(feed_id) @feed_id = feed_id end def save(redirects) @redirects = redirects return unless redirect_stable? Cache.write(stabl...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/jobs/feed_crawler/lib/cache.rb
app/jobs/feed_crawler/lib/cache.rb
module FeedCrawler class Cache def self.read(*args) new.read(*args) end def self.delete(*args) new.delete(*args) end def self.increment(key, **args) new.increment(key, **args) end def self.count(*args) new.count(*args) end def self.write(key, value, **ar...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/uploaders/entry_image_uploader.rb
app/uploaders/entry_image_uploader.rb
class EntryImageUploader < CarrierWave::Uploader::Base storage :fog def store_dir "public-images/#{SecureRandom.hex(1)}-#{Time.now.utc.strftime("%F")}" end def fog_attributes { "Cache-Control" => "max-age=315360000, public", "Expires" => 20.years.from_now.httpdate, "x-amz-storage-cla...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/uploaders/starred_export_uploader.rb
app/uploaders/starred_export_uploader.rb
class StarredExportUploader < CarrierWave::Uploader::Base storage :fog def store_dir "starred_export" end def fog_public false end def fog_authenticated_url_expiration 24.hours end def fog_attributes { "Content-Disposition" => "attachment; filename=starred.json" } end end...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/presenters/base_presenter.rb
app/presenters/base_presenter.rb
class BasePresenter def initialize(object, locals, template) @object = object @locals = locals @template = template end def favicon(feed, entry = nil) @favicon ||= begin @template.render FaviconComponent.new(feed:, entry:) end end private def self.presents(name) define_metho...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/presenters/subscription_presenter.rb
app/presenters/subscription_presenter.rb
class SubscriptionPresenter < BasePresenter presents :subscription def graph_volume @template.number_with_delimiter(total_posts) end def total_posts counts.last(30).sum end def graph_date_start days.ago.to_formatted_s(:day_month).upcase end def graph_date_mid total_days = (Time.now -...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/presenters/entry_presenter.rb
app/presenters/entry_presenter.rb
class EntryPresenter < BasePresenter YOUTUBE_URLS = [ %r{https?://youtu\.be/(.+)}, %r{https?://www\.youtube\.com/watch\?v=(.*?)(&|#|$)}, %r{https?://m\.youtube\.com/watch\?v=(.*?)(&|#|$)}, %r{https?://www\.youtube\.com/embed/(.*?)(\?|$)}, %r{https?://www\.youtube\.com/v/(.*?)(#|\?|$)}, %r{http...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/presenters/saved_search_presenter.rb
app/presenters/saved_search_presenter.rb
class SavedSearchPresenter < BasePresenter presents :saved_search def name if saved_search.name.blank? "Untitled Saved Search" else saved_search.name end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/presenters/user_presenter.rb
app/presenters/user_presenter.rb
class UserPresenter < BasePresenter presents :user delegate_missing_to :user def settings @settings ||= begin JSON.parse(@template.cookies.permanent.signed[:settings]) rescue {} end end def entry_width result = settings["ent...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/presenters/feed_presenter.rb
app/presenters/feed_presenter.rb
class FeedPresenter < BasePresenter presents :feed def feed_link(link: nil, behavior: nil, &block) args = [ link || @template.feed_entries_path(feed), remote: true, class: "feed-link", data: { behavior: behavior || "selectable show_entries open_item feed_link renamable user_titl...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/presenters/mercury_parser_presenter.rb
app/presenters/mercury_parser_presenter.rb
class MercuryParserPresenter < BasePresenter presents :mercury_parser end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/helpers/marketing_mailer_helper.rb
app/helpers/marketing_mailer_helper.rb
module MarketingMailerHelper def unsubscribe_link(user) id = Rails.application.message_verifier(:unsubscribe).generate(user.id) email_unsubscribe_public_setting_url(id) end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/helpers/sessions_helper.rb
app/helpers/sessions_helper.rb
module SessionsHelper def sign_in(user, remember_me = false) update_auth_cookie(user) @current_user = user end def signed_in? current_user.present? end def current_user @current_user ||= begin if request.subdomain == "api" authenticate_with_http_basic do |username, password| ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/helpers/settings_helper.rb
app/helpers/settings_helper.rb
module SettingsHelper def get_tag_names(tags, feed_id) if names = tags[feed_id] names.join(", ") end end def tag_options tags = @user.feed_tags.map { |tag| [tag.name, tag.name] } tags.unshift ["None", ""] end def plan_name if @user.plan.stripe_id == "timed" "prepaid...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/helpers/application_helper.rb
app/helpers/application_helper.rb
module ApplicationHelper def present(object, locals = nil, klass = nil) klass ||= "#{object.class}Presenter".constantize presenter = klass.new(object, locals, self) yield presenter if block_given? presenter end def component(name, *args, **kwargs, &block) component = "#{name}_component".camel...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/helpers/entries_helper.rb
app/helpers/entries_helper.rb
module EntriesHelper def format_text(text) text ||= "" decoder = HTMLEntities.new text = ActionController::Base.helpers.strip_tags(text) text = text.delete("\n") text = text.delete("\t") text = decoder.decode(text) text end def self.text_format(text) decoder = HTMLEntities.new ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/helpers/actions_helper.rb
app/helpers/actions_helper.rb
module ActionsHelper def action_feed_names(action) output = [] user = User.find(action.user_id) feed_names = user.feeds.where(id: action.feed_ids).include_user_title.map { |feed| feed.title } feed_names.sort! output << feed_names.shift(2).join(", ") if feed_names.present? ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/validators/import_file_validator.rb
app/validators/import_file_validator.rb
class ImportFileValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) path = record.file.queued_for_write[:original].path is_opml = false feeds = record.parse_opml feeds.each do |feed| if feed[:xml_url] is_opml = true end end unless is_opml ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/settings_controller.rb
app/controllers/settings_controller.rb
class SettingsController < ApplicationController def index render Settings::IndexView.new(user: current_user), layout: "settings" end def account @user = current_user @last_payment = @user.billing_events .order(created_at: :desc) .where(event_type: "charge.succeeded") .where("creat...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/account_migrations_controller.rb
app/controllers/account_migrations_controller.rb
class AccountMigrationsController < ApplicationController def index @user = current_user @migration = @user.account_migrations.last respond_to do |format| format.js format.html do render layout: "settings" end end end def start @user = current_user @migration = ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/subscriptions_controller.rb
app/controllers/subscriptions_controller.rb
class SubscriptionsController < ApplicationController def index @user = current_user if params[:tag] == "all" || params[:tag].blank? @tags = @user.feed_tags @feeds = @user.feeds.xml else @feeds = [] @tags = Tag.where(id: params[:tag]) end @titles = @user.subscriptions.pluck...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/microposts_controller.rb
app/controllers/microposts_controller.rb
class MicropostsController < ApplicationController def thread @user = current_user @entry = Entry.find(params[:id]) @microposts = Rails.cache.fetch("microblog_thread:#{@entry.id}", expires_in: 2.minutes) { build_microposts } end private def build_microposts replies = get_replies ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/queued_entries_controller.rb
app/controllers/queued_entries_controller.rb
class QueuedEntriesController < ApplicationController def index @user = current_user queued_entry_ids = @user.queued_entries.order(order: :asc).pluck(:entry_id) @entries = Entry.where(id: queued_entry_ids).includes(feed: [:favicon]).entries_list @entries = @entries.sort_by { |entry| queued_entry_ids....
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/recently_played_entries_controller.rb
app/controllers/recently_played_entries_controller.rb
class RecentlyPlayedEntriesController < ApplicationController def index @user = current_user recently_played_entries = @user.recently_played_entries.order("created_at DESC").limit(100) recently_played_entry_ids = [] recently_played_entries.each { |recently_played_entry| recently_played_entry_ids << r...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/site_controller.rb
app/controllers/site_controller.rb
class SiteController < ApplicationController skip_before_action :authorize, only: [:index, :manifest, :service_worker, :auto_sign_in] skip_before_action :verify_authenticity_token, only: [:service_worker] before_action :check_user, if: :signed_in? def index if signed_in? clear_location logged_i...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/extracts_controller.rb
app/controllers/extracts_controller.rb
class ExtractsController < ApplicationController def entry @user = current_user @entry = Entry.find params[:id] @extract = params[:extract] == "true" begin if @extract url = @entry.fully_qualified_url @content_info = MercuryParser.parse(url) @content = @content_info.cont...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/tags_controller.rb
app/controllers/tags_controller.rb
class TagsController < ApplicationController before_action :user_owns_tag, only: [:show] def index @user = current_user @tags = @user.feed_tags.pluck(:name) @tags = @tags.find_all { |tag| tag.downcase.include?(params[:query].downcase) }.first(3) respond_to do |format| format.json { render js...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/apps_controller.rb
app/controllers/apps_controller.rb
class AppsController < ApplicationController skip_before_action :verify_authenticity_token skip_before_action :authorize def redirect if signed_in? redirect_to root_url else head :unauthorized end end def login if user = authenticate_with_http_basic { |username, password| User.w...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/saved_searches_controller.rb
app/controllers/saved_searches_controller.rb
class SavedSearchesController < ApplicationController def show @user = current_user @saved_search = SavedSearch.where(user: @user, id: params[:id]).take! params[:query] = @saved_search.query result = Entry.scoped_search(params, @user) @entries = result.records(Entry).includes(:feed) @page_qu...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/devices_controller.rb
app/controllers/devices_controller.rb
class DevicesController < ApplicationController def create @user = current_user token = params[:device][:data][:endpoint] if token.nil? head :not_found and return end update = { token: token, model: request.env["HTTP_USER_AGENT"], data: device_params[:data] } devi...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/embeds_controller.rb
app/controllers/embeds_controller.rb
class EmbedsController < ApplicationController def twitter @url = params[:url] @dom_id = params[:dom_id] @media = IframeEmbed::Twitter.download(@url) render "embed", locals: {source: "twitter"}, formats: :js rescue JSON::ParserError head :ok end def instagram @url = params[:url] @do...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/bookmarklet_controller.rb
app/controllers/bookmarklet_controller.rb
class BookmarkletController < ApplicationController skip_before_action :verify_authenticity_token skip_before_action :authorize def script url = ActionController::Base.helpers.asset_url("bookmarklet.js", host: ENV["ASSET_HOST"]) redirect_to url, status: :found end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/recently_read_entries_controller.rb
app/controllers/recently_read_entries_controller.rb
class RecentlyReadEntriesController < ApplicationController def index @user = current_user recently_read_entry_ids = @user.recently_read_entries.order(id: :desc).limit(100).pluck(:entry_id) @entries = Entry.where(id: recently_read_entry_ids).includes(feed: [:favicon]).entries_list @entries = @entries...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/users_controller.rb
app/controllers/users_controller.rb
class UsersController < ApplicationController skip_before_action :authorize, only: [:new, :create] before_action :set_user, only: [:update, :destroy] before_action :ensure_permission, only: [:update, :destroy] def new session[:feed_wrangler_token] = params[:feed_wrangler_token] @user = User.new.with_p...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/actions_controller.rb
app/controllers/actions_controller.rb
class ActionsController < ApplicationController layout "settings" before_action :set_action, only: [:edit, :update, :destroy] def index @actions = @user.actions.standard.natural_sort_by { |action| action.title } @mutes = @user.actions.mute.natural_sort_by { |action| action.title } push_data end ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/feeds_entries_controller.rb
app/controllers/feeds_entries_controller.rb
class FeedsEntriesController < ApplicationController before_action :check_user etag { current_user.try :id } def index @user = current_user @feed_ids = params[:feed_id] feeds_response # Extra data for updating buttons @subscription = @user.subscriptions.where(feed_id: params[:feed_id]).tak...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/supported_sharing_services_controller.rb
app/controllers/supported_sharing_services_controller.rb
class SupportedSharingServicesController < ApplicationController def create @user = current_user if params[:supported_sharing_service][:operation] == "authorize" authorize_service(params[:supported_sharing_service][:service_id]) else supported_sharing_service = @user.supported_sharing_services...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/fix_feeds_controller.rb
app/controllers/fix_feeds_controller.rb
class FixFeedsController < ApplicationController before_action :set_subscription, only: [:update, :destroy, :destroy_subscription] def index @user = current_user @subscriptions = @user .subscriptions .fix_suggestion_present .includes(feed: [:discovered_feeds]) .sort_by { _1.title ||...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/app_store_notifications_controller.rb
app/controllers/app_store_notifications_controller.rb
class AppStoreNotificationsController < ApplicationController def show @user = current_user @billing_event = @user.app_store_notifications.find(params[:id]) render layout: false end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/feeds_controller.rb
app/controllers/feeds_controller.rb
class FeedsController < ApplicationController before_action :correct_user, only: :update def update @user = current_user @feed = Feed.find(params[:id]) @taggings = @feed.tag_with_params(params, @user) head :ok end def rename @user = current_user @subscription = @user.subscriptions.wher...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/pages_entries_controller.rb
app/controllers/pages_entries_controller.rb
class PagesEntriesController < ApplicationController def index @user = current_user @feed = @user.feeds.find(params[:id]) @append = params[:page].present? view_mode = params[:view] || params[:view_mode] if view_mode == "view_all" @entries = @feed.entries.includes(feed: [:favicon]).page(par...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/web_sub_controller.rb
app/controllers/web_sub_controller.rb
class WebSubController < ApplicationController skip_before_action :verify_authenticity_token skip_before_action :authorize before_action :set_feed def verify valid_topic = @feed.self_url == params["hub.topic"] if "subscribe" == params["hub.mode"] && valid_topic @feed.update(push_expiration: Time....
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/password_resets_controller.rb
app/controllers/password_resets_controller.rb
class PasswordResetsController < ApplicationController skip_before_action :authorize def new end def create success_message = "Email sent with password reset instructions." if user = User.find_by_email(params[:email]) log(user: user) if user.trial_plan? && !user.setting_on?(:password_reset...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/entries_controller.rb
app/controllers/entries_controller.rb
class EntriesController < ApplicationController skip_before_action :verify_authenticity_token, only: [:push_view, :newsletter] skip_before_action :authorize, only: [:push_view, :newsletter] def index @user = current_user @feed_ids = @user.subscriptions.pluck(:feed_id) feeds_response @type = "al...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/errors_controller.rb
app/controllers/errors_controller.rb
class ErrorsController < ApplicationController skip_before_action :authorize def not_found render_404 end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/pages_controller.rb
app/controllers/pages_controller.rb
class PagesController < ApplicationController skip_before_action :verify_authenticity_token skip_before_action :authorize, only: [:options] after_action :cors_headers, only: [:create, :options] def create save_page end def fallback save_page redirect_to root_url, notice: "Page saved!" end ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/pages_internal_controller.rb
app/controllers/pages_internal_controller.rb
class PagesInternalController < ApplicationController def create @entry = SavePage.new.perform(current_user.id, params[:url], nil) get_feeds_list end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/mutes_controller.rb
app/controllers/mutes_controller.rb
class MutesController < ApplicationController layout "settings" before_action :set_action, only: [:destroy] def index @mutes = @user.actions.mute.natural_sort_by { |action| action.title } end def create @user = current_user @action = @user.actions.new( query: params[:query], all_fee...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/billing_events_controller.rb
app/controllers/billing_events_controller.rb
class BillingEventsController < ApplicationController def show @user = current_user @billing_event = @user.billing_events.where(event_type: "charge.succeeded").find(params[:id]) render layout: false end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/sharing_services_controller.rb
app/controllers/sharing_services_controller.rb
class SharingServicesController < ApplicationController layout "settings" before_action :set_sharing_service, only: [:update, :destroy] def index @user = current_user @active_sharing_services = (@user.sharing_services + @user.supported_sharing_services) @active_sharing_services = @active_sharing_se...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/well_known_controller.rb
app/controllers/well_known_controller.rb
class WellKnownController < ApplicationController skip_before_action :verify_authenticity_token skip_before_action :authorize def apple_site_association render json: { "webcredentials": { "apps": ENV["APPLE_SITE_ASSOCIATION"].split(",") } } end def apple_pay render plain: ENV...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/in_app_purchases_controller.rb
app/controllers/in_app_purchases_controller.rb
class InAppPurchasesController < ApplicationController def show @user = current_user @billing_event = @user.in_app_purchases.find(params[:id]) render layout: false end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/remote_files_controller.rb
app/controllers/remote_files_controller.rb
class RemoteFilesController < ApplicationController skip_before_action :authorize AUTH_KEY = ENV["FILES_AUTH_KEY"] AUTH_HEADER = "X-Pull".freeze URL_HEADER = "X-File-URL".freeze HOST_HEADER = "X-File-Host".freeze SIZE_HEADER = "X-Image-Size".freeze PROXY_PATH = "/remote_image...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/newsletters_controller.rb
app/controllers/newsletters_controller.rb
class NewslettersController < ApplicationController skip_before_action :verify_authenticity_token def create job = NewsletterReceiver.perform_async(params[:newsletter][:to], params[:newsletter][:url]) render plain: job end private def authorize http_basic_authenticate_or_request_with name: "new...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/updated_entries_controller.rb
app/controllers/updated_entries_controller.rb
class UpdatedEntriesController < ApplicationController def index @user = current_user updated_entry_ids = @user.updated_entries.order(updated_at: :desc).limit(100).pluck(:entry_id) @entries = Entry.where(id: updated_entry_ids).includes(feed: [:favicon]) @entries = @entries.sort_by { |entry| updated_e...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/sessions_controller.rb
app/controllers/sessions_controller.rb
class SessionsController < ApplicationController skip_before_action :authorize def new redirect_to root_url if signed_in? end def create user = User.where("lower(email) = ?", params[:email].try(:strip).try(:downcase)).take if user&.authenticate(params[:password]) sign_in user, params[:rememb...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/application_controller.rb
app/controllers/application_controller.rb
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception include SessionsHelper before_action :authorize before_action :set_user before_action :honeybadger_context af...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/public_settings_controller.rb
app/controllers/public_settings_controller.rb
class PublicSettingsController < ApplicationController skip_before_action :verify_authenticity_token skip_before_action :authorize def email_unsubscribe user = Rails.application.message_verifier(:unsubscribe).verify(params[:id]) @user = User.find(user) @user.update(marketing_unsubscribe: "1") rescu...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/unread_entries_controller.rb
app/controllers/unread_entries_controller.rb
class UnreadEntriesController < ApplicationController def update @user = current_user @entry = Entry.find(params[:id]) unread_entry = UnreadEntry.where(user: @user, entry: @entry) if unread_entry.present? unread_entry.delete_all else UnreadEntry.create_from_owners(@user, @entry) e...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/starred_entries_controller.rb
app/controllers/starred_entries_controller.rb
class StarredEntriesController < ApplicationController skip_before_action :authorize, only: :index def index @user = User.find_by_starred_token(params[:starred_token]) if @user&.setting_on?(:starred_feed_enabled) @title = "Starred Articles" @entries = Rails.cache.fetch("#{@user.id}:starred_fee...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/app_store/notifications_v2_controller.rb
app/controllers/app_store/notifications_v2_controller.rb
class AppStore::NotificationsV2Controller < ApplicationController skip_before_action :verify_authenticity_token skip_before_action :authorize skip_before_action :set_user skip_before_action :honeybadger_context def create payload = params[:signedPayload] valid = JwsVerifier.valid?(payload) if val...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/extension/v1/subscriptions_controller.rb
app/controllers/extension/v1/subscriptions_controller.rb
module Extension module V1 class SubscriptionsController < ApiController def new @user = current_user @feeds = FeedFinder.feeds(params[:url]) @subscriptions = @user.existing_subscriptions(@feeds) end def create user = current_user urls = params[:feeds].va...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/extension/v1/api_controller.rb
app/controllers/extension/v1/api_controller.rb
module Extension module V1 class ApiController < ApplicationController respond_to :json prepend_before_action :cors_headers skip_before_action :verify_authenticity_token skip_before_action :authorize, only: [:options] def options; end private def authorize @cur...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/extension/v1/addresses_controller.rb
app/controllers/extension/v1/addresses_controller.rb
module Extension module V1 class AddressesController < ApiController def new @user = current_user @token = AuthenticationToken.generate_alpha_token @verified_token = Rails.application.message_verifier(:address_token).generate(@token) @addresses = @user.authentication_tokens.n...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/extension/v1/pages_controller.rb
app/controllers/extension/v1/pages_controller.rb
module Extension module V1 class PagesController < ApiController def create path = File.join(Dir.tmpdir, "pages_#{SecureRandom.hex}.html") File.write(path, params[:content]) SavePageFromExtension.perform_async(current_user.id, params[:url], params[:title], path) end end e...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/extension/v1/authentication_controller.rb
app/controllers/extension/v1/authentication_controller.rb
module Extension module V1 class AuthenticationController < ApiController skip_before_action :authorize, only: [:options] def index end end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/settings/subscriptions_controller.rb
app/controllers/settings/subscriptions_controller.rb
class Settings::SubscriptionsController < ApplicationController def index @user = current_user if @user.setting_on?(:fix_feeds_available) @user.setting_off!(:fix_feeds_available) end @subscriptions = subscriptions_with_sort_data.paginate(page: params[:page], per_page: 50) store_location ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/settings/imports_controller.rb
app/controllers/settings/imports_controller.rb
class Settings::ImportsController < ApplicationController def index @user = current_user @tags = @user.feed_tags @download_options = @tags.map { |tag| [tag.name, tag.id] } @download_options.unshift(["All", "all"]) @imports = @user.imports.where.not(filename: nil).order(created_at: :desc...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/settings/billings_controller.rb
app/controllers/settings/billings_controller.rb
class Settings::BillingsController < ApplicationController before_action :plan_exists, only: [:update_plan] def index @user = current_user payments plan_setup render layout: "settings" end def edit @user = current_user @default_plan = @user.plan plan_setup render layout: "s...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/settings/newsletters_controller.rb
app/controllers/settings/newsletters_controller.rb
class Settings::NewslettersController < ApplicationController layout "settings" def show render Settings::Newsletters::IndexView.new(user: current_user, subscription_ids: @user.subscriptions.pluck(:feed_id)) end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/settings/import_items_controller.rb
app/controllers/settings/import_items_controller.rb
module Settings class ImportItemsController < ApplicationController def update @user = current_user @import_item = @user.import_items.find(params[:id]) @import_item.complete! FeedImportFixer.perform_async(@user.id, @import_item.id, params[:discovered_feed][:id].to_i) end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/settings/newsletters/senders_controller.rb
app/controllers/settings/newsletters/senders_controller.rb
class Settings::Newsletters::SendersController < ApplicationController layout "settings" def index feed_ids = @user.subscriptions.pluck(:feed_id) @senders = if params[:q].present? search_senders end @feed_ids = @user.subscriptions.pluck(:feed_id) respond_to do |format| format.htm...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/settings/newsletters/addresses_controller.rb
app/controllers/settings/newsletters/addresses_controller.rb
class Settings::Newsletters::AddressesController < ApplicationController layout "settings" before_action :set_address, only: [:update, :destroy, :activate] def show user = current_user address = user.newsletter_addresses.find(params[:id]) render Settings::Newsletters::Addresses::ShowView.new(address...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/admin/users_controller.rb
app/controllers/admin/users_controller.rb
class Admin::UsersController < ApplicationController def index @users = if params.key?(:q) User.page(params[:page]).where("email ILIKE :query", query: "%#{params[:q]}%") + DeletedUser.page(params[:page]).where("email ILIKE :query", query: "%#{params[:q]}%") else User.page(params[:page]) + DeletedU...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/admin/feeds_controller.rb
app/controllers/admin/feeds_controller.rb
class Admin::FeedsController < ApplicationController def index feed = if params.key?(:q) find_by = (params[:q].to_i == 0) ? {feed_url: params[:q]} : {id: params[:q]} Feed.where(find_by) end render Admin::Feeds::IndexView.new(params: params, feed: feed), layout: "settings" end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v1/api_controller.rb
app/controllers/api/v1/api_controller.rb
module Api module V1 class ApiController < ApplicationController skip_before_action :verify_authenticity_token def gone message = "Feedbin API V1 is no longer available. Please upgrade to V2: https://github.com/feedbin/feedbin-api#readme" render json: {status: 410, message: message}.t...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/podcasts/v1/subscriptions_controller.rb
app/controllers/api/podcasts/v1/subscriptions_controller.rb
module Api module Podcasts module V1 class SubscriptionsController < ApiController before_action :set_subscription, only: [:destroy, :update] before_action :validate_content_type, only: [:create, :update] wrap_parameters PodcastSubscription def index @user = curre...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/podcasts/v1/queued_entries_controller.rb
app/controllers/api/podcasts/v1/queued_entries_controller.rb
module Api module Podcasts module V1 class QueuedEntriesController < ApiController before_action :set_queued_entry, only: [:update, :destroy] before_action :validate_content_type, only: [:create, :update] def index @user = current_user @queued_entries = @user.que...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/podcasts/v1/playlists_controller.rb
app/controllers/api/podcasts/v1/playlists_controller.rb
module Api module Podcasts module V1 class PlaylistsController < ApiController before_action :set_playlist, only: [:update, :destroy] before_action :validate_content_type, only: [:create, :update] def index @user = current_user @user.migrate_playlists! ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/podcasts/v1/api_controller.rb
app/controllers/api/podcasts/v1/api_controller.rb
module Api module Podcasts module V1 class ApiController < ApplicationController respond_to :json skip_before_action :verify_authenticity_token private def hex_decode(string) string.scan(/../).map { |x| x.hex.chr }.join end def remove_stale_update...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/podcasts/v1/feeds_controller.rb
app/controllers/api/podcasts/v1/feeds_controller.rb
module Api module Podcasts module V1 class FeedsController < ApiController skip_before_action :authorize skip_before_action :set_user def show url = hex_decode(params[:id]) @feed = Feed.find_by_feed_url(url) if @feed.present? if @feed.standa...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/podcasts/v1/authentication_controller.rb
app/controllers/api/podcasts/v1/authentication_controller.rb
module Api module Podcasts module V1 class AuthenticationController < ApiController respond_to :json def index end end end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/podcasts/v1/queued_entries/bulk_controller.rb
app/controllers/api/podcasts/v1/queued_entries/bulk_controller.rb
module Api module Podcasts module V1 class QueuedEntries::BulkController < ApiController before_action :set_queued_entries, only: [:update] before_action :validate_content_type, only: [:update] wrap_parameters QueuedEntry def update @queued_entries.each do |queued_...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/subscriptions_controller.rb
app/controllers/api/v2/subscriptions_controller.rb
module Api module V2 class SubscriptionsController < ApiController respond_to :json before_action :validate_content_type, only: [:create] before_action :validate_create, only: [:create] def index if request.head? render status: 200 else @user = current...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/imports_controller.rb
app/controllers/api/v2/imports_controller.rb
module Api module V2 class ImportsController < ApiController respond_to :json before_action :validate_xml, only: [:create] def index user = current_user @imports = user.imports.order(created_at: :desc) end def create user = current_user @import = us...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/suggested_categories_controller.rb
app/controllers/api/v2/suggested_categories_controller.rb
module Api module V2 class SuggestedCategoriesController < ApiController respond_to :json skip_before_action :valid_user def index @suggested_categories = SuggestedCategory.limit(100) end end end end
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/suggested_feeds_controller.rb
app/controllers/api/v2/suggested_feeds_controller.rb
module Api module V2 class SuggestedFeedsController < ApiController respond_to :json skip_before_action :valid_user def index @suggested_feeds = SuggestedFeed.limit(200).includes(:feed) end def subscribe @user = current_user suggested_feed = SuggestedFeed.fi...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/tags_controller.rb
app/controllers/api/v2/tags_controller.rb
module Api module V2 class TagsController < ApiController respond_to :json def index @user = current_user @tags = @user.feed_tags end def update user = current_user tag = Tag.find_by_name(params[:old_name]) Tag.rename(user, tag, params[:new_name])...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/saved_searches_controller.rb
app/controllers/api/v2/saved_searches_controller.rb
module Api module V2 class SavedSearchesController < ApiController respond_to :json before_action :validate_content_type, only: [:create] before_action :validate_create, only: [:create] def index @user = current_user @saved_searches = @user.saved_searches.order(Arel.sql("...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/devices_controller.rb
app/controllers/api/v2/devices_controller.rb
module Api module V2 class DevicesController < ApiController respond_to :json before_action :validate_content_type, only: [:create] skip_before_action :valid_user def create @user = current_user @user .devices .create_with(device_params) .whe...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/taggings_controller.rb
app/controllers/api/v2/taggings_controller.rb
module Api module V2 class TaggingsController < ApiController respond_to :json before_action :validate_create, only: [:create] before_action :validate_content_type, only: [:create] def index @user = current_user @taggings = @user.taggings.includes(:tag) fresh_when ...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/recently_read_entries_controller.rb
app/controllers/api/v2/recently_read_entries_controller.rb
module Api module V2 class RecentlyReadEntriesController < ApiController respond_to :json def index @user = current_user render json: @user.recently_read_entries.order(created_at: :desc).limit(100).pluck(:entry_id).compact.to_json end def create @user = current_us...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/authentication_tokens_controller.rb
app/controllers/api/v2/authentication_tokens_controller.rb
module Api module V2 class AuthenticationTokensController < ApiController respond_to :json before_action :validate_content_type, only: [:create] skip_before_action :valid_user def create @user.authentication_tokens.icloud.create_with(skip_generate: true).find_or_create_by(authenti...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/favicons_controller.rb
app/controllers/api/v2/favicons_controller.rb
module Api module V2 class FaviconsController < ApiController respond_to :json skip_before_action :valid_user def index @user = current_user feed_ids = @user.subscriptions.pluck(:feed_id) hosts = Feed.where(id: feed_ids).pluck(:host) @favicons = Favicon.unscoped....
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/api_controller.rb
app/controllers/api/v2/api_controller.rb
module Api module V2 class ApiController < ApplicationController skip_before_action :verify_authenticity_token before_action :valid_user, if: :signed_in? def entries_response(path_helper) if params[:read] == "true" @page_query = @page_query.where.not(id: @user.unread_entries.s...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/entry_counts_controller.rb
app/controllers/api/v2/entry_counts_controller.rb
module Api module V2 class EntryCountsController < ApiController respond_to :json skip_before_action :valid_user def post_frequency @user = current_user feed_ids = @user.subscriptions.pluck(:feed_id) counts = get_post_frequency(feed_ids) render json: counts.to_js...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/users_controller.rb
app/controllers/api/v2/users_controller.rb
module Api module V2 class UsersController < ApiController respond_to :json before_action :validate_content_type, only: [:create] skip_before_action :authorize, only: [:create] skip_before_action :valid_user def create @user = User.new(user_params) @user.plan = Plan...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false
feedbin/feedbin
https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/controllers/api/v2/actions_controller.rb
app/controllers/api/v2/actions_controller.rb
module Api module V2 class ActionsController < ApiController respond_to :json before_action :set_action, only: [:update, :results] before_action :validate_content_type, only: [:create] skip_before_action :valid_user def index @user = current_user @actions = @user.ac...
ruby
MIT
02911157804301424ec3b1a17e1a9583c09b9e9b
2026-01-04T15:49:01.344805Z
false