NEAR-DevHub / neardevhub-contract

NEAR DevHub contract
https://neardevhub.org
19 stars 15 forks source link

not only devhub for web4 #128

Closed petersalomonsen closed 3 months ago

petersalomonsen commented 3 months ago

add support for other accounts than just devhub.near to show web4 landing pages.

every reference to devhub.near is replaced with env::current_account_id().

The logo is then also referenced with the following url:

https://i.near.social/magic/large/https://near.social/magic/img/account/CURRENT_ACCOUNT_ID.near

What is missing are the texts for the title and description. I am not sure where we should fetch these, is it available in the contract storage somewhere @frol @PolyProgrammist @Tguntenaar ?

<meta property="og:title" content="near/dev/hub" />
<meta property="og:description" content="The decentralized home base for NEAR builders" />
<meta name="twitter:title" content="near/dev/hub">
<meta name="twitter:description" content="The decentralized home base for NEAR builders">

fixes #127

petersalomonsen commented 3 months ago

Looks good to me. Let’s use the SocialDB “app” widget metadata (we will edit it manually for now)

@frol https://github.com/NEAR-DevHub/neardevhub-contract/pull/134 should fix it. I will also add a preview deployment to be able to verify it manually as well before we merge.