Lemmy 1.0: Respect per-community vote settings

Open
#3,085 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
64/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
ios, swift
Domain
mobile

Research direction

Start by tracing VoteAction from where it is enabled for posts and comments, then inspect how LemmyCommunity exposes the four vote settings and how the current user’s community membership is represented. Disable the relevant action when the setting is disable or the user does not meet its audience rule; verify that each post and comment vote action reflects its matching setting.

Written by the indexing model from the issue text.

Description

lemmy feature

On Lemmy 1.0, moderators can choose who can vote on the community's posts:

    // LemmyCommunity.swift
    public let postUpvotes: LemmyVoteSettings?
    public let postDownvotes: LemmyVoteSettings?
    public let commentUpvotes: LemmyVoteSettings?
    public let commentDownvotes: LemmyVoteSettings?
public enum LemmyVoteSettings: String, Codable, Sendable {
    case all, local, subscribed, disable
}

We should disable VoteAction when it's not possible for the user to vote

Dominant language
Swift
Stars
249
Forks
37
Avg merge
4d 2h
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mlemgroup/mlem

All issues in mlemgroup/mlem

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.