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

Commit

Permalink
Merge pull request #1536 from ecency/bugfix/3speak-upload-app
Browse files Browse the repository at this point in the history
Updated app in meta while uploading in 3speak
  • Loading branch information
feruzm authored Jan 23, 2024
2 parents f62779d + 778789b commit dcfe9f7
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 dcfe9f7

Please sign in to comment.