mirror of
https://github.com/mastodon/mastodon.git
synced 2026-05-11 06:14:20 -05:00
Add for searching already-known private GtS posts (#38057)
This commit is contained in:
parent
a475f2ba39
commit
6fcdc05e43
|
|
@ -4,7 +4,7 @@ class ResolveURLService < BaseService
|
|||
include JsonLdHelper
|
||||
include Authorization
|
||||
|
||||
USERNAME_STATUS_RE = %r{/@(?<username>#{Account::USERNAME_RE})/(?<status_id>[0-9]+)\Z}
|
||||
USERNAME_STATUS_RE = %r{/@(?<username>#{Account::USERNAME_RE})/(statuses/)?(?<status_id>[0-9a-zA-Z]+)\Z}
|
||||
|
||||
def call(url, on_behalf_of: nil)
|
||||
@url = url
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user