mirror of https://gitlab.com/bashrc2/epicyon
Use different id for announce
parent
67d004b930
commit
f5d95940a3
|
@ -8996,6 +8996,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'/followers'
|
'/followers'
|
||||||
if not repeat_private:
|
if not repeat_private:
|
||||||
announce_to_str = 'https://www.w3.org/ns/activitystreams#Public'
|
announce_to_str = 'https://www.w3.org/ns/activitystreams#Public'
|
||||||
|
announce_id = None
|
||||||
announce_json = \
|
announce_json = \
|
||||||
create_announce(curr_session,
|
create_announce(curr_session,
|
||||||
base_dir,
|
base_dir,
|
||||||
|
@ -9105,6 +9106,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
actor_absolute = self._get_instance_url(calling_domain) + actor
|
actor_absolute = self._get_instance_url(calling_domain) + actor
|
||||||
|
|
||||||
|
if announce_id:
|
||||||
|
first_post_id = announce_id.replace('/', '--')
|
||||||
|
else:
|
||||||
first_post_id = repeat_url.replace('/', '--')
|
first_post_id = repeat_url.replace('/', '--')
|
||||||
first_post_id = ';firstpost=' + first_post_id.replace('#', '--')
|
first_post_id = ';firstpost=' + first_post_id.replace('#', '--')
|
||||||
|
|
||||||
|
@ -9226,12 +9230,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
actor_absolute = self._get_instance_url(calling_domain) + actor
|
actor_absolute = self._get_instance_url(calling_domain) + actor
|
||||||
|
|
||||||
first_post_id = repeat_url.replace('/', '--')
|
|
||||||
first_post_id = ';firstpost=' + first_post_id.replace('#', '--')
|
|
||||||
|
|
||||||
actor_path_str = \
|
actor_path_str = \
|
||||||
actor_absolute + '/' + timeline_str + '?page=' + \
|
actor_absolute + '/' + timeline_str + '?page=' + \
|
||||||
str(page_number) + first_post_id + timeline_bookmark
|
str(page_number) + timeline_bookmark
|
||||||
fitness_performance(getreq_start_time, self.server.fitness,
|
fitness_performance(getreq_start_time, self.server.fitness,
|
||||||
'_GET', '_undo_announce_button',
|
'_GET', '_undo_announce_button',
|
||||||
self.server.debug)
|
self.server.debug)
|
||||||
|
|
Loading…
Reference in New Issue