mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-06 09:02:43 +00:00
Remove unused definitions from OStatus::TagManager
(#36067)
This commit is contained in:
parent
beca0faed0
commit
e2cbef7edb
|
@ -4,43 +4,6 @@ class OStatus::TagManager
|
||||||
include Singleton
|
include Singleton
|
||||||
include RoutingHelper
|
include RoutingHelper
|
||||||
|
|
||||||
VERBS = {
|
|
||||||
post: 'http://activitystrea.ms/schema/1.0/post',
|
|
||||||
share: 'http://activitystrea.ms/schema/1.0/share',
|
|
||||||
favorite: 'http://activitystrea.ms/schema/1.0/favorite',
|
|
||||||
unfavorite: 'http://activitystrea.ms/schema/1.0/unfavorite',
|
|
||||||
delete: 'http://activitystrea.ms/schema/1.0/delete',
|
|
||||||
follow: 'http://activitystrea.ms/schema/1.0/follow',
|
|
||||||
request_friend: 'http://activitystrea.ms/schema/1.0/request-friend',
|
|
||||||
authorize: 'http://activitystrea.ms/schema/1.0/authorize',
|
|
||||||
reject: 'http://activitystrea.ms/schema/1.0/reject',
|
|
||||||
unfollow: 'http://ostatus.org/schema/1.0/unfollow',
|
|
||||||
block: 'http://mastodon.social/schema/1.0/block',
|
|
||||||
unblock: 'http://mastodon.social/schema/1.0/unblock',
|
|
||||||
}.freeze
|
|
||||||
|
|
||||||
TYPES = {
|
|
||||||
activity: 'http://activitystrea.ms/schema/1.0/activity',
|
|
||||||
note: 'http://activitystrea.ms/schema/1.0/note',
|
|
||||||
comment: 'http://activitystrea.ms/schema/1.0/comment',
|
|
||||||
person: 'http://activitystrea.ms/schema/1.0/person',
|
|
||||||
collection: 'http://activitystrea.ms/schema/1.0/collection',
|
|
||||||
group: 'http://activitystrea.ms/schema/1.0/group',
|
|
||||||
}.freeze
|
|
||||||
|
|
||||||
COLLECTIONS = {
|
|
||||||
public: 'http://activityschema.org/collection/public',
|
|
||||||
}.freeze
|
|
||||||
|
|
||||||
XMLNS = 'http://www.w3.org/2005/Atom'
|
|
||||||
MEDIA_XMLNS = 'http://purl.org/syndication/atommedia'
|
|
||||||
AS_XMLNS = 'http://activitystrea.ms/spec/1.0/'
|
|
||||||
THR_XMLNS = 'http://purl.org/syndication/thread/1.0'
|
|
||||||
POCO_XMLNS = 'http://portablecontacts.net/spec/1.0'
|
|
||||||
DFRN_XMLNS = 'http://purl.org/macgirvin/dfrn/1.0'
|
|
||||||
OS_XMLNS = 'http://ostatus.org/schema/1.0'
|
|
||||||
MTDN_XMLNS = 'http://mastodon.social/schema/1.0'
|
|
||||||
|
|
||||||
def unique_tag(date, id, type)
|
def unique_tag(date, id, type)
|
||||||
"tag:#{Rails.configuration.x.local_domain},#{date.strftime('%Y-%m-%d')}:objectId=#{id}:objectType=#{type}"
|
"tag:#{Rails.configuration.x.local_domain},#{date.strftime('%Y-%m-%d')}:objectId=#{id}:objectType=#{type}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user