Only admins can attach a video for now - #1965
Merged
Merged
Conversation
Das Video-Feature ist einen Tag alt, und Stefan will es erst mit den Leuten ausprobieren, die es beurteilen können, bevor jedes Mitglied es sieht. Ein Schalter je Installation (VIDEO_UPLOADERS, Standard admins) entscheidet, wer einen Clip anhängen darf; die Prüfung sitzt im Kontext, und jede Fläche, die einen Clip anbietet oder annimmt, fragt sie, damit ein Mitglied außerhalb des Kreises die Funktion nirgends zu sehen bekommt: kein Picker, die Mastodon-API und /api/2.0 lehnen mit dem Bilder-Satz ab, und die Instanz- Antwort nennt keine Videoformate. Das Abspielen bleibt für alle. Claude-Session: https://claude.ai/code/session_017tGtKCW1DpJk5JmX5j41A3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Video on posts went live for everyone yesterday (#1963). Until the feature has been tried by the people who can judge it, only admins should attach a clip, and nobody else should see it.
A per-installation switch,
VIDEO_UPLOADERS(defaultadmins,membersopens it), decides who may upload. The check sits inVutuv.Videos.create_pending_video/3; the surfaces only hide: no picker for a member in the composer and an unoffered upload cut off at its first chunk, the picture-only refusal from the Mastodon API and/api/2.0, and no video types or limits in the instance answer until every member may upload. Playback is never gated.One consequence: while uploads are admins-only, even admins cannot upload from a Mastodon client, since the instance answer is anonymous. The web composer works. Production needs no environment change.
An AI agent wrote this text in my name. I know that is problematic.
https://claude.ai/code/session_017tGtKCW1DpJk5JmX5j41A3