privacy - require authentication on all timeline endpoints to make life difficult for fediverse archivers

master
multiple creatures 2019-08-17 03:24:58 -05:00
parent 92616f265c
commit 87136f77d7
2 changed files with 1 additions and 7 deletions

View File

@ -13,6 +13,7 @@ class Api::V1::Timelines::PublicController < Api::BaseController
private
def load_statuses
return [] unless user_signed_in?
cached_public_statuses
end

View File

@ -250,10 +250,6 @@ const startWorker = (workerId) => {
};
const PUBLIC_STREAMS = [
'public',
'public:media',
'public:local',
'public:local:media',
'hashtag',
'hashtag:local',
];
@ -273,10 +269,7 @@ const startWorker = (workerId) => {
};
const PUBLIC_ENDPOINTS = [
'/api/v1/streaming/public',
'/api/v1/streaming/public/local',
'/api/v1/streaming/hashtag',
'/api/v1/streaming/hashtag/local',
];
const authenticationMiddleware = (req, res, next) => {