app.studynext.comment

A comment posted inside a study room. Stored on the commenter's PDS.

Repository @studynext.app did:plc:nstib2qjcu3tyun7cxz4dxcm namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritystudynext.app
Commit rev3n3kcoordcs2t
Indexed

Record

record · key tid

Properties

createdAt

requiredstring · datetime

edited

boolean

True once the sender has edited this comment's text after posting (see editComment in comments.ts). Absent/false means never edited. Editing only ever rewrites `text` in place (same rkey, via putRecord) — createdAt does not change, and media/mentions are dropped on edit rather than carried over, since a text edit's offsets could no longer match them.

media

array

1-4 images, OR exactly 1 of video/audio/file (client-enforced — a video/audio/file can't be combined with other attachments, images can't be combined with a video/audio/file).

  • maxLength: 4
itemsref
Reference
  • maxLength: 10
itemsref
Reference

replyTo

string · at-uri

AT-URI of another app.studynext.comment in the same room this replies to.

room

requiredstring · at-uri

AT-URI of the containing study room, such as an app.studynext.socialPost or app.studynext.studyTeam record; legacy status/self room URIs may also exist

text

requiredstring

May be empty only when `media` is present.

  • minLength: 0
  • maxLength: 2000

#aspectRatio

object

Properties

height

requiredinteger
  • minimum: 1

width

requiredinteger
  • minimum: 1

#commentMediaItem

object

A tagged union by `type` — exactly one of `image`/`video` is present depending on its value. Not expressed as a formal lexicon union since this is documentation only (all comment writes use validate:false).

Properties

alt

string
  • maxLength: 300
Reference

audio

blob

Present iff type=audio. Uploaded as picked (no client-side re-encoding, unlike image/video) — the client restricts the picker to wav/ogg/opus/mp3 (plus a couple of common OS-recorder container formats) so every accepted source is already something both major mobile platforms and browsers can decode without transcoding.

  • maxSize: 100000000
  • accept: audio/mpeg, audio/wav, audio/x-wav, audio/wave, audio/ogg, audio/opus, audio/webm, audio/mp4, audio/x-m4a

durationMs

integer

video/audio only

  • minimum: 0

file

blob

Present iff type=file. A generic attachment (documents, text/markdown notes, archives, ...) with no fixed mime type — unlike image/video/audio's narrow accept lists, this is intentionally unrestricted since the client can't re-encode or otherwise normalize arbitrary file content. `mimeType`/`filename` (siblings on this same commentMediaItem) tell a viewer whether to attempt a text/markdown preview or fall back to a plain download link.

  • maxSize: 100000000
  • accept: */*

filename

string

file (and optionally audio) only — original filename as picked by the sender.

  • maxLength: 255

image

blob

Present iff type=image. Always the *output* format — the client accepts any source format the OS photo picker offers (including HEIC/HEIF) but always re-encodes to JPEG via ImageManipulator before upload (see comments.ts), so a HEIC-shooting iPhone never uploads a HEIC blob and every viewer's device only ever needs JPEG decode support. maxSize is the common 100MB attachment limit; the client normally resizes/compresses images to a few hundred KB.

  • maxSize: 100000000
  • accept: image/jpeg, image/png, image/webp

mimeType

string

file only — the blob's own mime type, since type=file has no fixed accept list to infer it from.

  • maxLength: 255

size

integer

file only — byte size, used by viewers to decide whether to preview or just link out.

  • minimum: 0

type

requiredstring
  • enum: image | video | audio | file

video

blob

Present iff type=video. Always the *output* format after client-side compression (react-native-compressor) — the client accepts any source codec the OS lets it read (H.264, HEVC/H.265, VP9, AV1, ...) and re-encodes on-device before upload, so every viewer's device only ever needs to decode whatever the compressor's own output codec is (typically H.264/mp4), never the sender's original codec. No server-side transcoding (unlike app.bsky.embed.video's separate video service). Source VP9/AV1 decode is not supported by iOS's AVFoundation at all — on iOS, compressing (and therefore sending) such a source file fails with a clear client-side error rather than silently uploading something viewers can't play; Android's MediaCodec has much broader VP9/AV1 decode support. maxSize is the common 100MB attachment limit.

  • maxSize: 100000000
  • accept: video/mp4, video/quicktime, video/webm

#mention

object

A did mentioned within `text`, by UTF-16 code unit offset — mirrors how the app renders/taps the mention, not a general-purpose richtext facet.

Properties

did

requiredstring · did

end

requiredinteger
  • minimum: 0

start

requiredinteger
  • minimum: 0

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A comment on a post. Optionally includes a single image with alt text and self-applied labels — same image shape as feed.post. Either text or image (or both) must be present in practice; the lexicon doesn't enforce that since 'one of N required' isn't expressible.

  • Comment on a wips.social update. Top-level comments omit parent; replies set parent to the immediate comment being answered. subject always points at the root update. Body may be text, ordered media, or both (application validators require at least one of non-whitespace text or known image/video media; unknown open-union media variants do not satisfy content alone). Optional rich-text facets (app.bsky.richtext.facet), langs, and labels (open union; current app policy requires selfLabels). Commen

  • A comment on a topic (or a reply to another comment), stored in the commenter's own repo.

  • A comment on a topic (or a reply to another comment), stored in the commenter's own repo.

  • place.stream.vod.comment

    record not from the namespace authority

    Record containing a comment on a VOD.