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

👔 Add newsPress tag to iscnPayload #488

Merged
merged 2 commits into from
Oct 27, 2024

Conversation

AuroraHuang22
Copy link
Collaborator

No description provided.

@AuroraHuang22 AuroraHuang22 marked this pull request as ready for review October 2, 2024 02:58
@AuroraHuang22 AuroraHuang22 changed the title 🚧 Add newsPress tag to iscnPayload 👔 Add newsPress tag to iscnPayload Oct 2, 2024
@@ -287,8 +286,11 @@ export default class FetchIndex extends Vue {
publisher,
type = 'CreativeWork',
} = this.iscnData
let { description = '' } = this.iscnData
let { description = '', keywords = '' } = this.iscnData
Copy link
Member

Choose a reason for hiding this comment

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

Will this duplicate with https://github.com/likecoin/app-like-co/pull/486/files?
Should we check if NewsPress already exists?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

description = this.truncate(description, 200)
if (!keywords.includes('NewsPress')) {
Copy link
Member

@williamchong williamchong Oct 19, 2024

Choose a reason for hiding this comment

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

Suggested change
if (!keywords.includes('NewsPress')) {
if (this.isNewsPress && !keywords.includes('NewsPress')) {

We still need to check this.isNewsPress?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@williamchong williamchong merged commit d81556a into likecoin:main Oct 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants