Sfoglia il codice sorgente

fix tests

tags/v0.3.0
Jonathan Cobb 4 anni fa
parent
commit
1f3dfc0f50
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. +3
    -1
      bubble-server/src/main/java/bubble/model/app/AppSite.java
  2. +1
    -1
      bubble-server/src/main/resources/models/apps/user_block/hn/bubbleApp_userBlock_hn.json

+ 3
- 1
bubble-server/src/main/java/bubble/model/app/AppSite.java Vedi File

@@ -8,6 +8,7 @@ import lombok.experimental.Accessors;
import org.cobbzilla.util.collection.ArrayUtil;
import org.cobbzilla.wizard.model.Identifiable;
import org.cobbzilla.wizard.model.IdentifiableBase;
import org.cobbzilla.wizard.model.entityconfig.EntityFieldType;
import org.cobbzilla.wizard.model.entityconfig.annotations.*;

import javax.persistence.Column;
@@ -69,7 +70,8 @@ public class AppSite extends IdentifiableBase implements AppTemplateEntity {
@Column(nullable=false, length=10000)
@Getter @Setter private String description;

@ECSearchable(filter=true) @ECField(index=70)
// use opaque_string instead of default (http_url) because '*' is a valid value
@ECSearchable(filter=true) @ECField(index=70, type=EntityFieldType.opaque_string)
@Column(nullable=false, length=1024)
@Getter @Setter private String url;



+ 1
- 1
bubble-server/src/main/resources/models/apps/user_block/hn/bubbleApp_userBlock_hn.json Vedi File

@@ -10,7 +10,7 @@
"AppRule": [{
"name": "hn_user_blocker",
"template": true,
"driver": "JsUserBlocker",
"driver": "UserBlocker",
"config": {
"blockedCommentCheck": "parseInt(current.get('width')) > parseInt(blocked.get('width'))",
"blockedCommentReplacement": "{{{chunkStartRegex}}}<td>[comment by {{blockedUser}} has been blocked] <a href=\"{{{unblockUrl}}}\">UNBLOCK</a></td></tr>",


Caricamento…
Annulla
Salva