Skip to content

Commit

Permalink
remove anonymous from post metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Feb 8, 2024
1 parent 860cb7d commit 2c5a5c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions contracts/post/IggyPostMetadata.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ contract IggyPostMetadata is OwnableWithManagers {
string memory hue = _randomHueNum(_tokenId).toString();
string memory authorName = IBasePunkTLD(tldAddress).defaultNames(_author);

if (bytes(authorName).length == 0) {
authorName = "Anonymous";
} else {
if (bytes(authorName).length > 0) {
authorName = string(abi.encodePacked(authorName, IBasePunkTLD(tldAddress).name()));
}

Expand Down
4 changes: 1 addition & 3 deletions contracts/post/IggyPostMetadataStaticColor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ contract IggyPostMetadataStaticColor is OwnableWithManagers {
function _getImage(string memory _textPreview, address _author) internal view returns (string memory) {
string memory authorName = IBasePunkTLD(tldAddress).defaultNames(_author);

if (bytes(authorName).length == 0) {
authorName = "Anonymous";
} else {
if (bytes(authorName).length > 0) {
authorName = string(abi.encodePacked(authorName, IBasePunkTLD(tldAddress).name()));
}

Expand Down

0 comments on commit 2c5a5c9

Please sign in to comment.