privacy - require authentication on all timeline endpoints to make life difficult for fediverse archivers
parent
92616f265c
commit
87136f77d7
|
@ -13,6 +13,7 @@ class Api::V1::Timelines::PublicController < Api::BaseController
|
|||
private
|
||||
|
||||
def load_statuses
|
||||
return [] unless user_signed_in?
|
||||
cached_public_statuses
|
||||
end
|
||||
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue