Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Updated app in meta while uploading in 3speak
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Jan 22, 2024
1 parent 9075ccc commit 778789b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/common/pages/submit/api/publish.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMutation } from "@tanstack/react-query";
import { FullAccount } from "../../../store/accounts/types";
import { createPermlink, makeCommentOptions } from "../../../helper/posting";
import { createPermlink, makeApp, makeCommentOptions } from "../../../helper/posting";
import * as bridgeApi from "../../../api/bridge";
import { proxifyImageSrc } from "@ecency/render-helper";
import { markAsPublished, updateSpeakVideoInfo } from "../../../api/threespeak";
Expand All @@ -22,6 +22,7 @@ import { useThreeSpeakManager } from "../hooks";
import { buildMetadata, getDimensionsFromDataUrl } from "../functions";
import { useContext } from "react";
import { EntriesCacheContext } from "../../../core";
import { version } from "../../../../../package.json";

export function usePublishApi(history: History, onClear: () => void) {
const { activeUser } = useMappedStore();
Expand Down Expand Up @@ -112,7 +113,7 @@ export function usePublishApi(history: History, onClear: () => void) {
isNsfw
);
// set specific metadata for 3speak
jsonMeta.app = "3speak/0.3.0";
jsonMeta.app = makeApp(version);
jsonMeta.type = "video";
}

Expand Down

0 comments on commit 778789b

Please sign in to comment.