Skip to content

Revert "fix: make OG/Twitter meta tags use dynamic origin for local dev (#179)"#305

Merged
mayo-byte07 merged 1 commit into
mainfrom
revert-293-fix/179-dynamic-og-domain
Jul 1, 2026
Merged

Revert "fix: make OG/Twitter meta tags use dynamic origin for local dev (#179)"#305
mayo-byte07 merged 1 commit into
mainfrom
revert-293-fix/179-dynamic-og-domain

Conversation

@mayo-byte07

Copy link
Copy Markdown
Owner

Reverts #293

Copilot AI review requested due to automatic review settings July 1, 2026 19:05
@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
conn Ready Ready Preview, Comment Jul 1, 2026 7:05pm

@mayo-byte07 mayo-byte07 self-assigned this Jul 1, 2026
@mayo-byte07 mayo-byte07 merged commit 70584a8 into main Jul 1, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reverts prior changes related to Open Graph/Twitter metadata behavior (per PR title/description) and cleans up merge-conflict artifacts, restoring expected routes/meta handling in the Conn server + static frontend.

Changes:

  • Removes leftover merge-conflict artifacts and standardizes the click rate-limit message in server.js.
  • Reverts click-tracking route wiring and related client-side click POST behavior alignment.
  • Adjusts index.html Twitter meta tags and associated inline meta-tag rewrite logic; resolves a custom CSS sanitizer merge conflict in app.js.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
server.js Cleans up conflict artifacts; modifies click-tracking middleware/route behavior.
public/js/app.js Resolves a merge-conflict in the custom CSS sanitization chain.
public/index.html Updates Twitter meta tags and removes twitter:url handling; keeps other meta-tag logic in place.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread server.js
Comment on lines 1254 to 1258
// Track clicks (public — find link by ID across all users)
<<<<<<< fix/179-dynamic-og-domain
app.post('/api/links/:id/click', clickLimiter, async (req, res) => {
=======
app.post('/api/links/:id/click', requireAuth, clickLimiter, async (req, res) => {
>>>>>>> main
const { data: link } = await supabase
.from('user_links')
.select('id, clicks')
Comment thread public/index.html
Comment on lines 39 to 43
<script>
(function() {
var origin = window.location.origin;
var canonical = document.getElementById('canonicalTag');
var ogUrl = document.getElementById('ogUrl');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants