Skip to content

Commit

Permalink
link directly to home urls
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgesmr committed Dec 4, 2022
1 parent b9eba8b commit d2425ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def url(self) -> str:
return self.info["url"]

def get_home_url(self, mastodon_base_url: str) -> str:
return f"{mastodon_base_url}/authorize_interaction?uri={self.url}"
return f"{mastodon_base_url}/@{self.info['account']['acct']}/{self.info['id']}"

def get_score(self, scorer: Scorer) -> float:
return scorer.score(self)
Expand Down

0 comments on commit d2425ba

Please sign in to comment.