IGPAPI
    Preparing search index...

    Function repostOf

    • Internal

      One repost over an already-read media info source: the like (when asked), the note, and — on an 'editor' build with a non-empty text — the note-text mutation. This is the one owner of how a repost's text reaches the note: a 'note-with-text' build sends it inside the note and never runs the mutation, and an absent or empty text leaves the note blank on either build. The public MediaRepost brick and the Android post screen both call it, so neither can drift from the other about which request carries the text.

      Parameters

      • input: {
            like?: boolean;
            source: {
                carousel?: {
                    index: number;
                    noteMediaId: string;
                    pk: string;
                    size?: number;
                };
                mediaId: string;
                trackingToken: string;
            };
            target: MediaRepostTarget;
            text?: string;
            wire: MobileMediaRepostWire;
        }

      Returns Effect<
          | {
              note: MediaCreateNoteResponse;
              repost?: undefined;
              trackingToken: string;
          }
          | {
              note: MediaCreateNoteResponse;
              repost: {
                  data: {
                      xdt_update_media_note_repost_text: { id: string; text: string };
                  };
              };
              trackingToken: string;
          },
          | IgApiError
          | RequestError
          | ParseError
          | TransportError
          | UserIdNotFoundInState
          | SchemaError
          | GraphqlRootFieldMissingError
          | MobileMediaLikeWireNotDeclaredError,
          | PlainJsonApiHttp
          | Signature
          | MobileSession
          | MobileDevice
          | GraphqlJsonHttp
          | MobileApplication
          | NavigationWire,
      >