mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
ed656b4cbc
commit
8891c743c9
|
@ -18928,8 +18928,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
sys_language)
|
sys_language)
|
||||||
followers_only = False
|
followers_only = False
|
||||||
pin_post(self.server.base_dir,
|
pin_post(self.server.base_dir,
|
||||||
nickname, self.server.domain, content_str,
|
nickname, self.server.domain, content_str)
|
||||||
followers_only)
|
|
||||||
return 1
|
return 1
|
||||||
if self._post_to_outbox(message_json,
|
if self._post_to_outbox(message_json,
|
||||||
self.server.project_version,
|
self.server.project_version,
|
||||||
|
|
2
posts.py
2
posts.py
|
@ -1703,7 +1703,7 @@ def _post_is_addressed_to_followers(nickname: str, domain: str, port: int,
|
||||||
|
|
||||||
|
|
||||||
def pin_post(base_dir: str, nickname: str, domain: str,
|
def pin_post(base_dir: str, nickname: str, domain: str,
|
||||||
pinned_content: str, followers_only: bool) -> None:
|
pinned_content: str) -> None:
|
||||||
"""Pins the given post Id to the profile of then given account
|
"""Pins the given post Id to the profile of then given account
|
||||||
"""
|
"""
|
||||||
account_dir = acct_dir(base_dir, nickname, domain)
|
account_dir = acct_dir(base_dir, nickname, domain)
|
||||||
|
|
Loading…
Reference in New Issue