Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Twitter Meta Tags Don't Work #432

Closed
xbdmHQ opened this issue Jun 18, 2023 · 2 comments · Fixed by #437
Closed

Bug: Twitter Meta Tags Don't Work #432

xbdmHQ opened this issue Jun 18, 2023 · 2 comments · Fixed by #437
Labels
bug Something isn't working

Comments

@xbdmHQ
Copy link

xbdmHQ commented Jun 18, 2023

What happened?

Twitter Meta Tags:

 <meta name="twitter:card" content="summary_large_image">
    <meta property="og:type" content="website"/>
    <meta id="embed-title" property="og:title" content="{{ media.filename }} ({{ media.size }})">
    <meta id="embed-desc" property="og:description" content="{{ lang('date') }}: {{ media.timestamp }}">
    {% if type == 'image' %}
        <meta id="embed-image" property="og:image" content="{{ url }}/raw">
        <meta id="discord" name="twitter:image" content="{{ url }}/raw">
        <meta id="image-src" name="twitter:image:src" content="{{ url }}/raw">
    {% elseif type == 'video' %}
        <meta name="twitter:card" content="player" />
        <meta name="twitter:title" content="{{ media.filename }} ({{ media.size }})" />
        <meta name="twitter:image" content="0" />
        <meta name="twitter:player:stream" content="{{ url }}/raw" />
        <meta name="twitter:player:width" content="720" />
        <meta name="twitter:player:height" content="480" />
        <meta name="twitter:player:stream:content_type" content="{{ media.mimetype }}" />

        <meta property="og:url" content="{{ url }}/raw" />
        <meta property="og:video" content="{{ url }}/raw" />
        <meta property="og:video:secure_url" content="{{ url }}/raw" />
        <meta property="og:video:type" content="{{ media.mimetype }}" />
        <meta property="og:video:width" content="720" />
        <meta property="og:video:height" content="480" />
        <meta property="og:image" content="0" />

Version

latest (ghcr.io/diced/zipline or ghcr.io/diced/zipline:latest)

What browser(s) are you seeing the problem on?

Firefox, Chromium-based (Chrome, Edge, Brave, Opera, mobile chrome/chromium based, etc), Safari, Firefox Mobile, Safari Mobile

Zipline Logs

No response

Browser Logs

No response

Additional Info

When i put my link on to twitter, It doesn't embed

@xbdmHQ xbdmHQ added the bug Something isn't working label Jun 18, 2023
@github-actions github-actions bot added this to the 3.7.1 milestone Jun 18, 2023
@diced
Copy link
Owner

diced commented Jun 18, 2023

What is the problem here?

@TacticalTechJay
Copy link
Collaborator

TacticalTechJay commented Jun 18, 2023

^ Check the edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants