• Otter@lemmy.ca
    link
    fedilink
    English
    arrow-up
    30
    ·
    9 months ago
    from Lemmy import Upvote
    from Fediverse import Posts
    from ActivityPub import Submit
    
    target_post = 'https://lemmy.ca/post/18691085'
    num_votes = 8
    
    post = Posts.open(target_post)
    
    package = Upvote(post, num_votes)
    
    package.Submit(target_post)
    

    or something