···135135 };
136136137137 let externalEmbed = null;
138138+139139+ // todo get real way of doing this better getting domain
140140+ const domain = window.location.hostname;
138141 if (uploadedPollImageBlob) {
139142 externalEmbed = {
140143 $type: "app.bsky.embed.external",
141144 external: {
142142- uri: `https://reddwarf.app/profile/${agent.did}/post/${rkey}`, // Todo: update to your actual poll viewer URL
145145+ uri: `https://${domain}/profile/${agent.did}/post/${rkey}`, // Todo: update to your actual poll viewer URL
143146 title: "Poll created by " + agent.did,
144147 description: "Click to participate in this poll",
145148 thumb: uploadedPollImageBlob,