Skip to content

Commit

Permalink
Remove redundant user_to_actor
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelOtter committed Oct 21, 2023
1 parent f54e354 commit 2bfdc91
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions granary/bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,17 +1045,6 @@ def get_activities_response(self, user_id=None, group_id=None, app_id=None,
resp = self.make_activities_base_response(util.trim_nulls(activities))
return resp

def user_to_actor(self, user):
"""Converts a dict user to an actor.
Args:
user: Bluesky user app.bsky.actor.defs#profileViewDetailed
Returns:
an ActivityStreams actor dict, ready to be JSON-encoded
"""
return to_as1(user)

def get_comment(self, comment_id, **kwargs):
"""Fetches and returns a comment.
Expand Down

0 comments on commit 2bfdc91

Please sign in to comment.